import cookie from 'js-cookie'

const TOKEN_KEY = 'jwt-token'

export function getToken() {
  return cookie.get(TOKEN_KEY)
}

export function setToken(token) {
  cookie.set(TOKEN_KEY, token)
}

export function removeToken() {
  cookie.remove(TOKEN_KEY)
}
